package service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import service.Utils;

public class Constant {
	public static List<CommonType> scheduleType = new ArrayList<CommonType>();
	public static List<CommonType> scheduleStatus = new ArrayList<CommonType>();
	
	public static Map<Integer, String> scheduleTypeMap = null;
	public static Map<Integer, String> scheduleStatusMap = null;
	
	static {
		scheduleType.add(new CommonType(1, "Data log -> Data lake"));
		scheduleType.add(new CommonType(2, "Data lake -> Data warehouse"));
		scheduleType.add(new CommonType(3, "Data warehouse -> Data mart"));
		scheduleType.add(new CommonType(4, "Run daily"));
		
		scheduleTypeMap = Utils.listToMap(scheduleType);
		
		scheduleStatus.add(new CommonType(0, "Waiting"));
		scheduleStatus.add(new CommonType(1, "Ready"));
		scheduleStatus.add(new CommonType(2, "Running"));
		scheduleStatus.add(new CommonType(3, "Error"));
		scheduleStatus.add(new CommonType(4, "Finish"));
		
		scheduleStatusMap = Utils.listToMap(scheduleStatus);
	}
	
	public static String dateFormat = "yyyy/MM/dd";
}
